package com.app.micaihu.view.army.dialog

import android.os.Bundle
import com.app.base.BaseDialogFragment
import com.app.micaihu.R
import com.app.micaihu.configure.Config
import kotlinx.android.synthetic.main.army_create_head_dialog.*
import kotlinx.android.synthetic.main.army_create_head_dialog.tvOk
import kotlinx.android.synthetic.main.army_upgrade_success_dialog.*

/**
 * 军团升级 成功
 */
class ArmyUpgradeSuccessDialog : BaseDialogFragment() {

    override fun getLayoutId() = R.layout.army_upgrade_success_dialog

    override fun getBundle(bundle: Bundle) {
        level = bundle.getString(Config.Extra.level, "")
        desc = bundle.getString(Config.Extra.desc, "")

    }

    var level = ""
    var desc = ""
    override fun setData() {
        tvLevel.text = level
        tvSuccessDesc.text = desc

    }

    override fun addListeners() {
        tvOk.setOnClickListener { dismiss() }
    }
}